home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / colnedit.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  5.6 KB  |  148 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'ColnEdit.pas' rev: 3.00
  6.  
  7. #ifndef ColnEditHPP
  8. #define ColnEditHPP
  9. #include <ComCtrls.hpp>
  10. #include <DsgnIntf.hpp>
  11. #include <ExtCtrls.hpp>
  12. #include <Menus.hpp>
  13. #include <StdCtrls.hpp>
  14. #include <DsgnWnds.hpp>
  15. #include <Forms.hpp>
  16. #include <Controls.hpp>
  17. #include <Graphics.hpp>
  18. #include <Classes.hpp>
  19. #include <SysUtils.hpp>
  20. #include <Messages.hpp>
  21. #include <Windows.hpp>
  22. #include <SysInit.hpp>
  23. #include <System.hpp>
  24.  
  25. //-- user supplied -----------------------------------------------------------
  26.  
  27. namespace Colnedit
  28. {
  29. //-- type declarations -------------------------------------------------------
  30. class DELPHICLASS TCollectionEditor;
  31. class PASCALIMPLEMENTATION TCollectionEditor : public Dsgnwnds::TDesignWindow 
  32. {
  33.     typedef Dsgnwnds::TDesignWindow inherited;
  34.     
  35. __published:
  36.     Menus::TPopupMenu* ColnEditPopup;
  37.     Menus::TMenuItem* Add1;
  38.     Menus::TMenuItem* Delete1;
  39.     Menus::TMenuItem* MoveUp1;
  40.     Menus::TMenuItem* MoveDown1;
  41.     Menus::TMenuItem* ShowButtons1;
  42.     Extctrls::TPanel* Panel3;
  43.     Extctrls::TPanel* Panel1;
  44.     Stdctrls::TButton* Add;
  45.     Stdctrls::TButton* Delete;
  46.     Stdctrls::TButton* MoveUp;
  47.     Stdctrls::TButton* MoveDown;
  48.     Comctrls::TListView* ListView1;
  49.     Menus::TMenuItem* SelectAll1;
  50.     void __fastcall AddClick(System::TObject* Sender);
  51.     void __fastcall DeleteClick(System::TObject* Sender);
  52.     void __fastcall ListView1Click(System::TObject* Sender);
  53.     void __fastcall FormKeyPress(System::TObject* Sender, char &Key);
  54.     void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
  55.     void __fastcall MoveUpClick(System::TObject* Sender);
  56.     void __fastcall ListView1DragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState 
  57.         State, bool &Accept);
  58.     void __fastcall ListView1DragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
  59.     void __fastcall MoveDownClick(System::TObject* Sender);
  60.     void __fastcall ShowButtons1Click(System::TObject* Sender);
  61.     void __fastcall FormCreate(System::TObject* Sender);
  62.     void __fastcall FormDestroy(System::TObject* Sender);
  63.     void __fastcall FormResize(System::TObject* Sender);
  64.     void __fastcall ListView1Change(System::TObject* Sender, Comctrls::TListItem* Item, Comctrls::TItemChange 
  65.         Change);
  66.     void __fastcall SelectAll1Click(System::TObject* Sender);
  67.     
  68. private:
  69.     System::AnsiString FCollectionPropertyName;
  70.     int FMinWidth;
  71.     int FMinHeight;
  72.     int FStateLock;
  73.     Classes::TList* FItemIDList;
  74.     System::AnsiString FCollectionClassName;
  75.     bool FSelectionError;
  76.     System::AnsiString __fastcall GetRegKey(void);
  77.     void __fastcall SetCollectionPropertyName(const System::AnsiString Value);
  78.     MESSAGE void __fastcall WMGetMinMaxInfo(Messages::TWMGetMinMaxInfo &Msg);
  79.     MESSAGE void __fastcall AMDeferUpdate(void *Msg);
  80.     
  81. protected:
  82.     DYNAMIC void __fastcall Activated(void);
  83.     void __fastcall LockState(void);
  84.     void __fastcall UnlockState(void);
  85.     __property int StateLock = {read=FStateLock, nodefault};
  86.     
  87. public:
  88.     Classes::TCollection* Collection;
  89.     Classes::TComponent* Component;
  90.     virtual void __fastcall ComponentDeleted(Classes::TComponent* Component);
  91.     virtual void __fastcall FormClosed(Forms::TCustomForm* AForm);
  92.     virtual void __fastcall FormModified(void);
  93.     System::AnsiString __fastcall GetItemName(int Index, int ItemIndex);
  94.     void __fastcall GetSelection(void);
  95.     virtual void __fastcall SelectionChanged(Dsgnintf::TComponentList* ASelection);
  96.     HIDESBASE void __fastcall SetSelection(void);
  97.     void __fastcall UpdateListbox(void);
  98.     __property System::AnsiString CollectionPropertyName = {read=FCollectionPropertyName, write=SetCollectionPropertyName
  99.         };
  100. public:
  101.     /* TDesignWindow.Create */ __fastcall virtual TCollectionEditor(Classes::TComponent* AOwner) : Dsgnwnds::
  102.         TDesignWindow(AOwner) { }
  103.     /* TDesignWindow.Destroy */ __fastcall virtual ~TCollectionEditor(void) { }
  104.     
  105. public:
  106.     /* TCustomForm.CreateNew */ __fastcall TCollectionEditor(Classes::TComponent* AOwner, int Dummy) : 
  107.         Dsgnwnds::TDesignWindow(AOwner, Dummy) { }
  108.     
  109. public:
  110.     /* TWinControl.CreateParented */ __fastcall TCollectionEditor(HWND ParentWindow) : Dsgnwnds::TDesignWindow(
  111.         ParentWindow) { }
  112.     
  113. };
  114.  
  115. typedef System::TMetaClass*TCollectionEditorClass;
  116.  
  117. class DELPHICLASS TCollectionProperty;
  118. class PASCALIMPLEMENTATION TCollectionProperty : public Dsgnintf::TClassProperty 
  119. {
  120.     typedef Dsgnintf::TClassProperty inherited;
  121.     
  122. public:
  123.     virtual void __fastcall Edit(void);
  124.     virtual Dsgnintf::TPropertyAttributes __fastcall GetAttributes(void);
  125.     virtual System::TMetaClass* __fastcall GetEditorClass(void);
  126. public:
  127.     /* TPropertyEditor.Destroy */ __fastcall virtual ~TCollectionProperty(void) { }
  128.     
  129. public:
  130.     /* TObject.Create */ __fastcall TCollectionProperty(void) : Dsgnintf::TClassProperty() { }
  131.     
  132. };
  133.  
  134. //-- var, const, procedure ---------------------------------------------------
  135. #define AM_DeferUpdate (Word)(1124)
  136. extern PACKAGE TCollectionEditor* __fastcall ShowCollectionEditorClass(Forms::TDesigner* ADesigner, 
  137.     System::TMetaClass* CollectionEditorClass, Classes::TComponent* AComponent, Classes::TCollection* ACollection
  138.     , const System::AnsiString PropertyName);
  139. extern PACKAGE void __fastcall ShowCollectionEditor(Forms::TDesigner* ADesigner, Classes::TComponent* 
  140.     AComponent, Classes::TCollection* ACollection, const System::AnsiString PropertyName);
  141.  
  142. }    /* namespace Colnedit */
  143. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  144. using namespace Colnedit;
  145. #endif
  146. //-- end unit ----------------------------------------------------------------
  147. #endif    // ColnEdit
  148.